k=0
for x in range(6,100):
    if (x**4+3*x**3+x**2+5*x+2+7*100**3+x*100**2+2*100+5)%11==0:
        k+=1
print(k)
    
